home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / CPlusPlus / PfTLItr.xh < prev    next >
Encoding:
Text File  |  1994-04-19  |  4.4 KB  |  170 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: Locrian:WWDCSun:CPlusPlus:PfTLItr.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: somc/smemit.c
  7.  *     SOM Emitter emitxh.dll: somc/smmain.c
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODPlatformTypeSetIterator_xh
  18. #define SOM_ODPlatformTypeSetIterator_xh
  19.  
  20. class ODPlatformTypeSetIterator;
  21.  
  22. #define ODPlatformTypeSetIterator_MajorVersion 0
  23. #define ODPlatformTypeSetIterator_MinorVersion 0
  24.  
  25. /* C++ som defs */
  26. #include <somcls.xh>
  27.  
  28. /* Include C++ parent defs */
  29. #ifndef SOM_ODObject_xh
  30. #include <ODObject.xh>
  31. #endif
  32.  
  33. #ifndef ODPlatformTypeSetIterator_API
  34. #define ODPlatformTypeSetIterator_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of user-defined types:
  41.  */
  42. class ODExtension;
  43. class ODPlatformTypeSet;
  44.  
  45. /*
  46.  * End of user-defined types.
  47.  */
  48.  
  49. #if applec ^ PRAGMA_LIB_EXPORT
  50. #pragma lib_export on
  51. #endif
  52.  
  53.  
  54. /* A procedure to create the ODPlatformTypeSetIterator Class */
  55. SOMEXTERN SOMClass * SOMLINK ODPlatformTypeSetIteratorNewClass(
  56.         integer4 majorVersion,
  57.         integer4 minorVersion);
  58.  
  59. /* The API to the ODPlatformTypeSetIterator class object, and the methods it introduces. */
  60. typedef struct ODPlatformTypeSetIteratorClassDataStructure {
  61.     SOMClass *classObject;
  62.     somMToken InitODPlatformTypeSetIterator;
  63.     somMToken IsNotComplete;
  64.     somMToken First;
  65.     somMToken Next;
  66. } ODPlatformTypeSetIteratorClassDataStructure;
  67. #ifdef SOM_NO_DATA_EXPORTS
  68.    SOMEXTERN ODPlatformTypeSetIteratorClassDataStructure * ODPlatformTypeSetIteratorGetClassData ( void );
  69. #   undef ODPlatformTypeSetIteratorClassData
  70. #   define ODPlatformTypeSetIteratorClassData (*ODPlatformTypeSetIteratorGetClassData())
  71. #else
  72.    SOMEXTERN ODPlatformTypeSetIteratorClassDataStructure ODPlatformTypeSetIteratorClassData;
  73. #endif /* SOM_NO_DATA_EXPORTS */
  74.  
  75. #if applec ^ PRAGMA_LIB_EXPORT
  76. #pragma lib_export off
  77. #endif
  78.  
  79. #define _ODPlatformTypeSetIterator ODPlatformTypeSetIteratorClassData.classObject
  80.  
  81. /* The API to parentMtabs for ODPlatformTypeSetIterator, and the instance data it introduces. */
  82. SOMEXTERN struct ODPlatformTypeSetIteratorCClassDataStructure {
  83.     somMethodTabs parentMtab;
  84.     somDToken instanceDataToken;
  85. } ODPlatformTypeSetIteratorCClassData;
  86.  
  87. /*
  88.  * -- Typedefs for Procedures that support Methods introduced by ODPlatformTypeSetIterator
  89.  */
  90. SOMEXTERN {
  91. typedef void   (* SOMLINK somTD_ODPlatformTypeSetIterator_InitODPlatformTypeSetIterator)(ODPlatformTypeSetIterator *somSelf, Environment *ev,
  92.         ODPlatformTypeSet* typeSet);
  93. typedef ODBoolean   (* SOMLINK somTD_ODPlatformTypeSetIterator_IsNotComplete)(ODPlatformTypeSetIterator *somSelf, Environment *ev);
  94. typedef ODPlatformType   (* SOMLINK somTD_ODPlatformTypeSetIterator_First)(ODPlatformTypeSetIterator *somSelf, Environment *ev);
  95. typedef ODPlatformType   (* SOMLINK somTD_ODPlatformTypeSetIterator_Next)(ODPlatformTypeSetIterator *somSelf, Environment *ev);
  96. }
  97.  
  98. #endif /* ODPlatformTypeSetIterator_API */
  99.  
  100.  
  101. /*
  102.  * -- Method Tokens are Thunks
  103.  */
  104. #undef somresolve_
  105. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  106.  
  107. /*
  108.  * -- The C++ Wrapper Class for ODPlatformTypeSetIterator
  109.  */
  110. class ODPlatformTypeSetIterator : public ODObject
  111. {
  112. public:
  113.  
  114. void *operator new(size_t size)
  115. {
  116.    SOM_IgnoreWarning(size);
  117.    if (!ODPlatformTypeSetIteratorClassData.classObject) 
  118.       ODPlatformTypeSetIteratorNewClass(ODPlatformTypeSetIterator_MajorVersion,ODPlatformTypeSetIterator_MinorVersion);
  119.    return (void *)
  120.       ((somTD_SOMClass_somNew)
  121.       somresolve_((SOMObject *)((void*)(ODPlatformTypeSetIteratorClassData.classObject)),
  122.                  SOMClassClassData.somNew))
  123.          ((SOMClass *)((void*)(ODPlatformTypeSetIteratorClassData.classObject)));
  124. }
  125.  
  126. void operator delete(void * obj)
  127. {
  128.    ((SOMObject *)obj)->somFree();
  129. }
  130.  
  131. /* public method: InitODPlatformTypeSetIterator */
  132. void   InitODPlatformTypeSetIterator(Environment *ev,
  133.         ODPlatformTypeSet* typeSet)
  134. {
  135.    SOM_Resolve(this,ODPlatformTypeSetIterator,InitODPlatformTypeSetIterator)
  136.     (this,ev,typeSet);
  137. }
  138.  
  139.  
  140. /* public method: IsNotComplete */
  141. ODBoolean   IsNotComplete(Environment *ev)
  142. {
  143.    return SOM_Resolve(this,ODPlatformTypeSetIterator,IsNotComplete)
  144.     (this,ev);
  145. }
  146.  
  147.  
  148. /* public method: First */
  149. ODPlatformType   First(Environment *ev)
  150. {
  151.    return SOM_Resolve(this,ODPlatformTypeSetIterator,First)
  152.     (this,ev);
  153. }
  154.  
  155.  
  156. /* public method: Next */
  157. ODPlatformType   Next(Environment *ev)
  158. {
  159.    return SOM_Resolve(this,ODPlatformTypeSetIterator,Next)
  160.     (this,ev);
  161. }
  162.  
  163.  
  164.  
  165. };   /* ODPlatformTypeSetIterator */
  166.  
  167.  
  168.  
  169. #endif       /* SOM_ODPlatformTypeSetIterator_xh */
  170.